<?php
$v_current_af_id = '';
if(isset($_REQUEST['hdn_id'])){
	$v_current_af_id = $_REQUEST['hdn_id'];
}
$v_current_style_name = "odd_row";
// Luu ten style tiep theo
$v_next_style_name = "";
$v_url_send_question = "index.php?fuseaction=DISPLAY_SINGLE_QA_QUESTION_FOR_SENDING";
?>
<!--bang chua tieu de cua form-->
<table width="100%" cellpadding="0" cellspacing="0">
	<tr class="page_title">
		<td colspan="3"><?php echo CONST_SEARCH_CONDITIONS_LABEL; ?></td>
	</tr>
	<tr> 
		<td class="send_qa_link" colspan="5" align="left">
			<a href="<?php echo $v_url_send_question;?>"><?php echo CONST_QA_QUESTION_FOR_ANSWER_TITLE;?></a>&nbsp;&nbsp;
			<img src="<?php echo $_ISA_IMAGE_URL_PATH?>send_qa.gif">
		</td>
	</tr>	
</table>
<!-- bang chua cac tieu thuc loc-->
<table cellpadding="0" cellspacing="0" width="100%" >								
	<tr>
	 	<form action="index.php" name="f_dsp_qa" method="post">
		<input type="hidden" name="hdn_method" value="1">
		<input type="hidden" name="fuseaction"  value="">
	</tr>
</table>

<table width="100%" cellpadding="0" cellspacing="0">	
	<tr><td width="27%" height="15"></td></tr>
	<tr>
	    <td class="normal_label" ><?php echo CONST_AGENCY_LABEL;?></td>
		<td width="60%" class="normal_label" >
			<select class= "normal_selectbox" style="width:80%"   name = "cbo_agency" onChange="" optional = "<?php echo ""; ?>">
				<option id="-1",value="-1"><?php echo ALL_LABLE ?></option>			
				<? echo _generate_select_option($arr_all_agency,"0","0","2", $v_agency_id);?>
			</select>
		</td>
	</tr>
	<tr><td height="10"></td></tr>
	<tr>
		<td class="normal_label"><?php echo CONST_CATEGORY_LABEL;?></td>
		<td class="normal_label" >
			<select class= "normal_selectbox" style="width:75%"  name = "cbo_cate" onChange="" optional = "<?php echo ""; ?>">
				<option id="-1",value="-1"><?php echo ALL_LABLE; ?></option>
				<? echo _generate_select_option($arr_all_cate,"0","0","2", $v_cate_id);?>	
			</select>
		</td>
	 </tr>
	 <tr><td height="10"></td></tr>
	 <tr>
		<td class="normal_label"><?php echo CONST_START_DATE_LABEL; ?> </td>	    
	    <td>&nbsp;
			<input name ="txt_start_date" type="text" class="normal_textbox" readonly size="7" >
		   	<img src="<?php echo $_ISA_IMAGE_URL_PATH;?>calendar.gif" border="0" onClick="DoCal('<?php echo $_ISA_LIB_URL_PATH; ?>isa-calendar/',document.f_dsp_qa.txt_start_date)" style="cursor:hand">
            <span class="normal_label"><?php echo CONST_FINSH_DATE_LABEL; ?></span> <input name ="txt_end_date" type="text" class="normal_textbox" readonly  size="7">
      		<img src="<?php echo $_ISA_IMAGE_URL_PATH;?>calendar.gif" border="0" onClick="DoCal('<?php echo $_ISA_LIB_URL_PATH; ?>isa-calendar/',document.f_dsp_qa.txt_end_date)" style="cursor:hand">
		</td>
 	</tr>
	<tr><td height="10"></td></tr>
	<tr>
		<td class="normal_label"><?php echo CONST_SEARCH_BY_LABEL;?></td>
		<td class="normal_label">
			<input type="radio" name="rad_filter" class="normal_radiobutton" value="1" <?php if ($v_method == 1) echo 'checked';?>  onclick="document.f_dsp_qa.hdn_method.value = 1;"> 
			<?php echo CONST_NAME_LABEL;?>
			<input type="radio" name="rad_filter" class="normal_radiobutton" value="0" <?php if ($v_method == 0) echo 'checked';?>  onclick="document.f_dsp_qa.hdn_method.value = 0;">
			<?php echo CONST_CONTENT_LABEL;?>
		</td>
	</tr>
	<tr><td height="10"></td></tr>
	<tr>
		<td width="27%" class="normal_label"><?php echo CONST_SEARCH_KEY_LABEL;?></td>
		<td class="normal_label">
			<input type="text" class="normal_textbox" size="29" name="txt_filter_value" value="<?php //echo $v_filter; ?>" onKeyDown="txt_search_qa_by_conditions_keydown();">
		</td>
	</tr>
	<tr><td height="20"></td></tr>
	<tr>
		<td class="normal_label" align="center"></td>
		<td class="normal_label" align="left">
			<input type="button" class="small_button" style="width:15%" name="btn_filter" value="<?php echo CONST_SEARCH_BUTTON; ?>" onClick="btn_search_qa_by_conditions_onclick();">
		</td>
	</tr>
</table>
</form>
